package mil.af.amc.adpetracker.dao;

import mil.af.amc.adpetracker.model.DrmoPackage;
import mil.af.amc.adpetracker.model.AdpeAccount;

import java.util.List;

/**
 * Interface for DrmoPackageDao implementations
 *
 * @author TSgt Jason Ferguson
 */

public interface DrmoPackageDao extends GenericDao<DrmoPackage> {

    /**
     * Return a DrmoPackage object by its unique DTID
     *
     * @param dtid a String representing the DTID
     * @return  a DrmoPackage object with the given DTID, or null
     */
    DrmoPackage getByDtid(String dtid);

    List<DrmoPackage> getAllByAdpeAccount(AdpeAccount acct);

    List<DrmoPackage> getPendingByAdpeAccount(AdpeAccount acct);

    int getPendingCountByAdpeAccount(AdpeAccount acct);
}
